package com.lmq.factory.method;

import com.lmq.factory.simple.CarFactory;

public class consumer {
    public static void main(String[] args) {
        Car car1 = new WulingFactory().getCar();
        Car car2 = new TeslaFactory().getCar();
        car1.name();
        car2.name();
        Car car3 = new MobaiFactory().getCar();
        car3.name();


    }
}
